<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
	<link href="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
	<?php 
		Yii::app()->bootstrap->register(); 
		Yii::app()->getClientScript()->registerCoreScript( 'jquery.ui' );
	?>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	<script>var baseurl='<?php echo Yii::app()->baseUrl; ?>';</script>
	<link id="bs-css" href="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/bootstrap-united.css" rel="stylesheet">
	<style type="text/css">
	  body {
		padding-bottom: 40px;
	  }
	  .sidebar-nav {
		padding: 9px 0;
	  }
	  .navbar .brand {
		color: #000000;
		display: block;
		float: left;
		line-height: 1;
		margin-left: -20px;
		width : 400px;
		font-family: 'Ubuntu',Tahoma,sans-serif;
	}
	</style>
	
	<link href="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/charisma-app.css" rel="stylesheet">
	<link href="<?php echo Yii::app()->baseUrl; ?>/addon/css/styleOwn.css" rel="stylesheet" type="text/css">
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/fullcalendar.css' rel='stylesheet'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/fullcalendar.print.css' rel='stylesheet'  media='print'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/chosen.css' rel='stylesheet'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/uniform.default.css' rel='stylesheet'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/colorbox.css' rel='stylesheet'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/jquery.cleditor.css' rel='stylesheet'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/jquery.noty.css' rel='stylesheet'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/noty_theme_default.css' rel='stylesheet'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/elfinder.min.css' rel='stylesheet'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/elfinder.theme.css' rel='stylesheet'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/jquery.iphone.toggle.css' rel='stylesheet'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/opa-icons.css' rel='stylesheet'>
	<link href='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/css/uploadify.css' rel='stylesheet'>
	
	
</head>

<body>
<?php
	$this->widget('application.extensions.moneymask.MMask',array(
			'element'=>'.moneyFormat',
			'currency'=>'PHP',
			'config'=>array(
				'thousands'=>'.',
				'decimal'=>',',
				'precision'=>0,
			)
		));
?>
<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand btn" href="#"> Panca Group SIMPD Aplication</a>
				
				<!-- theme selector starts -->
				<div class="btn-group pull-right theme-container" >
					<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
						<i class="icon-tint"></i><span class="hidden-phone"> Change Theme / Skin</span>
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu" id="themes">
						<li><a data-value="classic" href="#"><i class="icon-blank"></i> Classic</a></li>
						<li><a data-value="cerulean" href="#"><i class="icon-blank"></i> Cerulean</a></li>
						<li><a data-value="cyborg" href="#"><i class="icon-blank"></i> Cyborg</a></li>
						<li><a data-value="redy" href="#"><i class="icon-blank"></i> Redy</a></li>
						<li><a data-value="journal" href="#"><i class="icon-blank"></i> Journal</a></li>
						<li><a data-value="simplex" href="#"><i class="icon-blank"></i> Simplex</a></li>
						<li><a data-value="slate" href="#"><i class="icon-blank"></i> Slate</a></li>
						<li><a data-value="spacelab" href="#"><i class="icon-blank"></i> Spacelab</a></li>
						<li><a data-value="united" href="#"><i class="icon-blank"></i> United</a></li>
					</ul>
				</div>
				<!-- theme selector ends -->
				
				<!-- user dropdown starts -->
				<div class="btn-group pull-right" >
					<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                                                <?php
                                                        $username=Yii::app()->spd->userAdmin(Yii::app()->user->getId());
                                                ?>
						<i class="icon-user"></i><span class="hidden-phone"> <?php echo $username; ?></span>
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						<li><a href="<?php echo yii::app()->createURL('site/logout'); ?>">Logout</a></li>
					</ul>
				</div>
				<!-- user dropdown ends -->
				
				<div class="top-nav nav-collapse">
					
				</div><!--/.nav-collapse -->
			</div>
		</div>
	</div>
	<!-- topbar ends -->
		<div class="container-fluid">
		<div class="row-fluid">
				
			<!-- left menu starts -->
			<div class="span2 main-menu-span">
				<div class="well nav-collapse sidebar-nav">
					<ul class="nav nav-tabs nav-stacked main-menu">
						<li class="nav-header hidden-tablet">Main</li>
						<li><a class="ajax-link" href="<?php echo Yii::app()->baseUrl; ?>/index.php"><i class="icon icon-black icon-home"></i><span class="hidden-tablet"> Dashboard</span></a></li>
						<li class="nav-header hidden-tablet"></li>
                                                <li><a class="ajax-link" href="<?php echo Yii::app()->baseUrl; ?>/index.php/sysUser"><i class="icon icon-black icon-user"></i><span class="hidden-tablet"> Manajemen User</span></a></li>
                                                <li class="nav-header hidden-tablet"></li>
						<li><a class="ajax-link" href="<?php echo Yii::app()->baseUrl; ?>/index.php/kegiatan"><i class="icon icon-black icon-suitcase"></i><span class="hidden-tablet"> Tim / Kegiatan</span></a></li>
						<li><a class="ajax-link" href="<?php echo Yii::app()->baseUrl; ?>/index.php/karyawan"><i class="icon icon-black icon-contacts"></i><span class="hidden-tablet"> Data Karyawan</span></a></li>
						<li class="nav-header hidden-tablet"></li>
						<li><a class="ajax-link" href="<?php echo Yii::app()->baseUrl; ?>/index.php/jabatan"><i class="icon icon-black icon-profile"></i><span class="hidden-tablet"> Setup Jabatan</span></a></li>
						<li><a class="ajax-link" href="<?php echo Yii::app()->baseUrl; ?>/index.php/transport"><i class="icon icon-black icon-sent"></i><span class="hidden-tablet"> Setup Transport</span></a></li>
						<li><a class="ajax-link" href="<?php echo Yii::app()->baseUrl; ?>/index.php/provinsi"><i class="icon icon-black icon-inbox"></i><span class="hidden-tablet"> Setup Provinsi</span></a></li>
						<li><a class="ajax-link" href="<?php echo Yii::app()->baseUrl; ?>/index.php/agama"><i class="icon icon-black icon-bookmark"></i><span class="hidden-tablet"> Setup Agama</span></a></li>
						<li class="nav-header hidden-tablet"></li>
						<li><a class="ajax-link" href="<?php echo Yii::app()->baseUrl; ?>/index.php/biayaProv"><i class="icon icon-black icon-book"></i><span class="hidden-tablet"> Biaya Per Prov</span></a></li>
						<li><a class="ajax-link" href="<?php echo Yii::app()->baseUrl; ?>/index.php/typeDinas"><i class="icon icon-black icon-briefcase"></i><span class="hidden-tablet"> Type Dinas</span></a></li>
					</ul>
					
				</div><!--/.well -->
			</div><!--/span-->
		
			<!-- left menu ends -->
	<div id="content" class="span10">
		<?php if(isset($this->breadcrumbs)):?>
			<?php $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
				'links'=>$this->breadcrumbs,
			)); ?><!-- breadcrumbs -->
		<?php endif?>
		<div class="row-fluid">
			<div class="box span12">
				<div class="box-header well">
					<h2><i class="icon-info-sign"></i> <?php echo substr($this->pageTitle, 7); ?></h2>
				</div>
				<div class="box-content">
					
					<?php echo $content; ?>
					
					<div class="clearfix"></div>
				</div>
			</div>
		</div>
	

	<div class="clear"></div>
	</div>
	<br/><br/>
	<footer>
		<p class="pull-right">Copyright &copy; <a href="#">Panca Group</a> 2013</p>
	</footer>
</div>
</div>


</body>
<!-- transition / effect library -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/bootstrap-transition.js"></script>
<!-- global function library -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/js_modul/funcglobal.js"></script>
<!-- library for cookie management -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.cookie.js"></script>
<!-- calander plugin -->
<script src='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/fullcalendar.min.js'></script>
<!-- data table plugin -->
<script src='<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.dataTables.min.js'></script>


<!-- select or dropdown enhancer -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.chosen.min.js"></script>
<!-- checkbox, radio, and file input styler -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.uniform.min.js"></script>
<!-- plugin for gallery image view -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.colorbox.min.js"></script>
<!-- rich text editor library -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.cleditor.min.js"></script>
<!-- notification plugin -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.noty.js"></script>
<!-- file manager library -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.elfinder.min.js"></script>
<!-- star rating plugin -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.raty.min.js"></script>
<!-- for iOS style toggle switch -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.iphone.toggle.js"></script>
<!-- autogrowing textarea plugin -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.autogrow-textarea.js"></script>
<!-- multiple file upload plugin -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.uploadify-3.1.min.js"></script>
<!-- history.js for cross-browser state change on ajax -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/jquery.history.js"></script>
<!-- application script for Charisma demo -->
<script src="<?php echo Yii::app()->baseUrl; ?>/addon/bootstraptheme/js/charisma.js"></script>
</html>
